<!--
HTML片段，嵌入弹窗中使用
注：在需要使用id的地方，请取st_jsid参数<?php echo $_GET['st_jsid']; ?>做前缀，避免影响到主页面
-->
<!--添加权限-->
<form action="{%:U('/admin/admin/savegroup')%}" onsubmit="return false" stverify="true" erroappend="true" ajaxpost="true" method="POST">
    <input class="input" type="text" name="id" hidden='true' value="{%$roleInfo['id']%}"/>
  <table class="table table-listing">
    <table class="table table-listing table-hovered">
      <thead class="thead-gray">
      <tr>
        <th width="8%">编号</th>
        <th width="12%">角色名称</th>
        <th width="80%">角色权限</th>
      </tr>
      </thead>
      <tbody>
        {%notempty name="roleList"%}
          {%foreach name="roleList" item="vo" key="keys"%}        
          <tr>
            <td><input type="checkbox" class="js-toggleall-target" name="role[]" value="{%$vo.id%}"
                     {%present name="roleArray[$vo['id']]" %} checked {%/present%} >{%$vo.id%}</td>
            <td>
              {%$vo.name%}
            </td>
            <td>
              {%$vo.atomName%}
            </td>
          </tr>
        {%/foreach%}
       {%/notempty%}
      </tbody>
    </table>
  </table>
</form>